package com.ghxxzx.daglcustom.business_delegate.domain;

import com.ghxxzx.daglcustom.utils.CreatedTools;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.GenericGenerator;
import org.tmsps.ne4spring.orm.model.DataModel;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * .代理委托表
 * 
 * @author 刘华
 *
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Entity
@Table(name = "d_delegate")
@org.tmsps.ne4spring.annotation.Table("d_delegate")
public class DelegatePo extends DataModel {

	@Id
	@GenericGenerator(name = "idGenerator", strategy = "uuid")
	@GeneratedValue(generator = "idGenerator")
	private String kid;
	// 委托业务
	private String business;
	// 委托人
	private String user;
	// 被委托人
	private String userd;
	// 开始时间
	private long start;
	// 结束时间
	private long end;
	// 委托状态
	private String statuz; // 委托状态 : 启用 or 停用
	private int status;
	private long created = CreatedTools.getCreated();
	//委托原因
	private String reason;

}
